home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-09-29 | 1.1 KB | 36 lines |
- '*******************************************************
- '* *
- '* AMOS Professional Procedure Library *
- '* *
- '* Procedure: Screen wipe 3 *
- '* *
- '* Author: N.P. Hayman-Joyce *
- '* *
- '*******************************************************
- WIPE[2,0]
- Procedure WIPE[_COLOUR,_COLOUR2]
- Rem *** Use paramter _colour for the colour!
- Ink _COLOUR
- Rem *** Set variables
- X1=0
- Y1=0
- Rem *** Find how wide the screen is and how deep
- X2=Screen Width
- Y2=Screen Height
- Rem *** Keep repeating until its cleared to the centre of the screen
- Repeat
- Box X1,Y1 To X2,Y2
- X1=X1+1
- X2=X2-1
- Y1=Y1+1
- Y2=Y2-1
- Until X1=160 or Y2=99
- Ink _COLOUR2
- Repeat
- Box X1,Y1 To X2,Y2
- X1=X1-1
- X2=X2+1
- Y1=Y1-1
- Y2=Y2+1
- Until X1=-1
- End Proc